#include "controller_thread.h"
#include <boost/shared_ptr.hpp>
#include "main_controller.h"

ControllerThread::ControllerThread(QObject *parent)
{
    controller_.reset(new MainController((MainWindow*)parent));
    cout << "initing..." << endl;
    controller_->Init();
    cout << "inited" << endl;
}

void ControllerThread::run()
{
    cout<<"ControllerThread::run() start"<<endl;
    controller_->Execute();
    cout<<"ControllerThread::run() end"<<endl;
}
